home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
newnod.arc
/
NEWNODE.DOC
< prev
Wrap
Text File
|
1988-02-06
|
2KB
|
57 lines
Name NEWNODE.COM
Purpose Reports the node (physical) address of the network interface
card, as set when the Novell NetWare Shell was first run. This
can be used to run a diskless workstation as a database server,
communication server, bridge or other non-operator controlled
function without logging into the network.
Format NEWNODE <enter>
Remarks NEWNODE is a short command that when used alone will report
the node or physical address of the network interface card in
Hexidecimal, then convert the last two hex digits to decimal.
This converted number can be used in the DOS Batch Command
IF ERRORLEVEL to cause the batch file to branch to a specific
function for that station.
If the NetWare shell hasn't been loaded, or if the program is
run on a Non-dedicated File Server, the program will display an
error message, and will return a 1 to the IF ERRORLEVEL.
Note that a physical address of 1 will also return a 1.
For example:
C>NEWNODE
The node address of this station is
006B004C55A4 hexidecimal, or 164 decimal.
or
C>NEWNODE
The node address of this station is
OOPS! The NetWare shell returned a 0, So you either
don't have the shell loaded or you are at a non-dedicated
server, or you don't have a network card!
This could be used in a batch file as follows:
ECHO OFF
NEWNODE
IF ERRORLEVEL 165 GOTO OTHERS
IF ERRORLEVEL 164 GOTO COMMS
IF ERRORLEVEL 2 GOTO OTHERS
IF ERRORLEVEL 1 GOTO 1
:COMMS
ECHO THE COMMS ROUTINE STARTS A COMMSERVER
GOTO END
:OTHERS
ECHO ALL OTHER STATIONS GO HERE
GOTO END
:1
ECHO RETURNS 1, SO AN ERROR OCCURRED,
GOTO END
:END
ECHO ALL DONE